package com.dao.mybatis.factory;

import com.dao.CustomerDao;
import com.dao.OrderDao;
import com.dao.ProductDao;
import com.dao.factory.DaoFactory;
import com.dao.mybatis.dao.MyBatisCustomerDao;
import com.dao.mybatis.dao.MyBatisOrderDao;
import com.dao.mybatis.dao.MyBatisProductDao;

/**
 * @author apodoprigora
 */
public class MyBatisDaoFactory extends DaoFactory {

    @Override
    public CustomerDao getCustomerDao() {
        return new MyBatisCustomerDao();
    }


    @Override
    public ProductDao getProductDao() {
        return new MyBatisProductDao();
    }


    @Override
    public OrderDao getOrderDao() {
        return new MyBatisOrderDao();
    }
}
